Programming iOS 8 by Matt Neuburg

Programming iOS 8 by Matt Neuburg

Author:Matt Neuburg
Language: eng
Format: epub
ISBN: 9781491908730
Publisher: O’Reilly Media, Inc.
Published: 2015-09-01T04:00:00+00:00


Table View Editing

A table view cell has a normal state and an editing state, according to its editing property. The editing state is typically indicated visually by one or more of the following:

Editing controls

At least one editing control will usually appear, such as a Minus button (for deletion) at the left side.

Shrinkage

The content of the cell will usually shrink to allow room for an editing control. If there is no editing control, you can prevent a cell shifting its left end rightward in editing mode with the table delegate’s tableView:shouldIndentWhileEditingRowAtIndexPath:. (There is also a cell property shouldIndentWhileEditing, but I find it unreliable.)

Changing accessory view

The cell’s accessory view will change automatically in accordance with its editingAccessoryType or editingAccessoryView. If you assign neither, so that they are nil, the cell’s existing accessory view will vanish when in editing mode.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.